package com.dems.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dems.dao.dataobject.CfgSignal;
import com.dems.dao.mapper.la.CfgSignalMapper;
import com.dems.domain.DeviceModelReqVO;
import com.dems.service.DeviceModelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeviceModelServiceImpl implements DeviceModelService {

    @Autowired
    private CfgSignalMapper cfgSignalMapper;

    @Override
    public Page<CfgSignal> queryListByPage(DeviceModelReqVO reqVO) {
        Page<CfgSignal> page = new Page<>(reqVO.getPageNum(), reqVO.getPageSize());
        return cfgSignalMapper.selectByPage(page, new CfgSignal());
    }
}
